package com.stress.testing.plugin.nosql.redis.resolver;

public class ResolveResult {
    /**
     * 此次key重命名操作之前，就已经重命名过了
     */
    private boolean keyRenamedBefore;

    private Object[] args;

    public ResolveResult(boolean keyRenamedBefore, Object[] args) {
        this.keyRenamedBefore = keyRenamedBefore;
        this.args = args;
    }

    public boolean isKeyRenamedBefore() {
        return keyRenamedBefore;
    }

    public Object[] getArgs() {
        return args;
    }

    public static ResolveResult renamedBefore(Object... args) {
        return new ResolveResult(true, args);
    }

    public static ResolveResult UnRenamedBefore(Object... args) {
        return new ResolveResult(false, args);
    }
}
